#include "TextureSample.h"

TextureSample::TextureSample(Graphics & gfx) : SampleBase(gfx)
{
	texture = Texture::Create(gfx,"../Resources/Textures/awesomeface.png");
	RT = std::make_unique<ShaderInputRenderTarget>(gfx,200,200,0);
}

TextureSample::~TextureSample()
{

}

void TextureSample::Render(float dt)
{
	gfx.ClearBuffer(color);
}

void TextureSample::GUI()
{
	ImGui::ColorEdit4("BG",color);
	ImGui::Begin("DirectX11 Texture");
	ImGui::Text("size = %d x %d", 200, 200);
	ImGui::Image((void*)RT->GetSRV(), ImVec2(200, 200));
	ImGui::End();
}
